package part4;

/**
 * @author wcj
 * @Date 2021/5/12 14:40
 * @Version 1.0
 */
public class Part41 {

    static int result = 0;

    public static int testVal(int testVal, int target) {
        if (testVal > target) {
            result = +1;
        } else if (testVal < target) {
            result = -1;
        } else {
            result = 0;
        }
        return result;
    }

    public static void main(String[] args) {
        testVal(10,5);
        System.out.println("10 > 5:"+result);
        testVal(5,10);
        System.out.println("5 < 10:"+result);
        testVal(5,5);
        System.out.println("5 == 5:"+result);
    }
}
